Test duplicate shortcuts
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 Nov 2013 00:00:17 +0000 (19:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 Nov 2013 00:00:17 +0000 (19:00 -0500)
Add an application shortcut for the Music folder in testfilechooser.
The file chooser used to filter duplicates out, but this broke
in the sidebar merge.

tests/testfilechooser.c

index 2f92f3228d66233c24b3318b454e07f75f35fa57..4d86e79e7e09751f77fc14c1cd71b6618e3619ff 100644 (file)
@@ -674,6 +674,9 @@ main (int argc, char **argv)
   gtk_file_chooser_add_shortcut_folder_uri (GTK_FILE_CHOOSER (dialog),
                                            "file:///usr/share/pixmaps",
                                            NULL);
+  gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (dialog),
+                                       g_get_user_special_dir (G_USER_DIRECTORY_MUSIC),
+                                       NULL);
 
   /* Initial filename or folder */